<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.17"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>AWTK-JAVA: awtk.TComboBox类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">AWTK-JAVA
   </div>
   <div id="projectbrief">AWTK JAVA API</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.17 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'搜索');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><b>awtk</b></li><li class="navelem"><a class="el" href="classawtk_1_1_t_combo_box.html">TComboBox</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="#pub-static-methods">静态 Public 成员函数</a> &#124;
<a href="classawtk_1_1_t_combo_box-members.html">所有成员列表</a>  </div>
  <div class="headertitle">
<div class="title">awtk.TComboBox类 参考</div>  </div>
</div><!--header-->
<div class="contents">
<div class="dynheader">
类 awtk.TComboBox 继承关系图:</div>
<div class="dyncontent">
 <div class="center">
  <img src="classawtk_1_1_t_combo_box.png" usemap="#awtk.TComboBox_map" alt=""/>
  <map id="awtk.TComboBox_map" name="awtk.TComboBox_map">
<area href="classawtk_1_1_t_edit.html" alt="awtk.TEdit" shape="rect" coords="0,56,122,80"/>
<area href="classawtk_1_1_t_combo_box_ex.html" alt="awtk.TComboBoxEx" shape="rect" coords="0,168,122,192"/>
  </map>
</div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:a5341d44e4d42dae122b12f7098da592c"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_combo_box.html#a5341d44e4d42dae122b12f7098da592c">TComboBox</a> (long nativeObj)</td></tr>
<tr class="separator:a5341d44e4d42dae122b12f7098da592c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a776052abf9964d98589c89ea70931893"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_combo_box.html#a776052abf9964d98589c89ea70931893">setOpenWindow</a> (String open_window)</td></tr>
<tr class="separator:a776052abf9964d98589c89ea70931893"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae5b92cb1c3bf8e4cc739ccc122774027"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_combo_box.html#ae5b92cb1c3bf8e4cc739ccc122774027">resetOptions</a> ()</td></tr>
<tr class="separator:ae5b92cb1c3bf8e4cc739ccc122774027"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abdfec36707d283c566717958b286f575"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_combo_box.html#abdfec36707d283c566717958b286f575">countOptions</a> ()</td></tr>
<tr class="separator:abdfec36707d283c566717958b286f575"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae48741968abb8a29be7e99c7061be902"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_combo_box.html#ae48741968abb8a29be7e99c7061be902">setSelectedIndex</a> (int index)</td></tr>
<tr class="separator:ae48741968abb8a29be7e99c7061be902"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1fb47f2bea2fe89f1291db2cc7f0062f"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_combo_box.html#a1fb47f2bea2fe89f1291db2cc7f0062f">setLocalizeOptions</a> (boolean localize_options)</td></tr>
<tr class="separator:a1fb47f2bea2fe89f1291db2cc7f0062f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5172d41049eddcaf4c1905947623ba82"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_combo_box.html#a5172d41049eddcaf4c1905947623ba82">setValue</a> (int value)</td></tr>
<tr class="separator:a5172d41049eddcaf4c1905947623ba82"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a92ebbc57a5ed345e1a3129a07834e46b"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_combo_box.html#a92ebbc57a5ed345e1a3129a07834e46b">setItemHeight</a> (int item_height)</td></tr>
<tr class="separator:a92ebbc57a5ed345e1a3129a07834e46b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a43bd95933163b4fe8019426952024b62"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_combo_box.html#a43bd95933163b4fe8019426952024b62">appendOption</a> (int value, String text)</td></tr>
<tr class="separator:a43bd95933163b4fe8019426952024b62"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a793875acda1d86174de0b16104fc8c89"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_combo_box.html#a793875acda1d86174de0b16104fc8c89">setOptions</a> (String options)</td></tr>
<tr class="separator:a793875acda1d86174de0b16104fc8c89"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4bd11765584dd7a7d846be5fe6ef9cef"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_combo_box.html#a4bd11765584dd7a7d846be5fe6ef9cef">getValue</a> ()</td></tr>
<tr class="separator:a4bd11765584dd7a7d846be5fe6ef9cef"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a664f9a3fd7d244d1baaac823df721c40"><td class="memItemLeft" align="right" valign="top">String&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_combo_box.html#a664f9a3fd7d244d1baaac823df721c40">getTextValue</a> ()</td></tr>
<tr class="separator:a664f9a3fd7d244d1baaac823df721c40"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a456dfc6118b8a5274c25d02b07ce018c"><td class="memItemLeft" align="right" valign="top">String&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_combo_box.html#a456dfc6118b8a5274c25d02b07ce018c">getOpenWindow</a> ()</td></tr>
<tr class="separator:a456dfc6118b8a5274c25d02b07ce018c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a47eed5507a0629cfac1b2accc5544530"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_combo_box.html#a47eed5507a0629cfac1b2accc5544530">getSelectedIndex</a> ()</td></tr>
<tr class="separator:a47eed5507a0629cfac1b2accc5544530"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0c54f266dd9547827aa9a906af6f50c3"><td class="memItemLeft" align="right" valign="top">boolean&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_combo_box.html#a0c54f266dd9547827aa9a906af6f50c3">getLocalizeOptions</a> ()</td></tr>
<tr class="separator:a0c54f266dd9547827aa9a906af6f50c3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a54dc57ee4cdbb98731af52d3430b2ff3"><td class="memItemLeft" align="right" valign="top">String&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_combo_box.html#a54dc57ee4cdbb98731af52d3430b2ff3">getOptions</a> ()</td></tr>
<tr class="separator:a54dc57ee4cdbb98731af52d3430b2ff3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a723dd763329dd779427a2d3d310355b5"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_combo_box.html#a723dd763329dd779427a2d3d310355b5">getItemHeight</a> ()</td></tr>
<tr class="separator:a723dd763329dd779427a2d3d310355b5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_classawtk_1_1_t_edit"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classawtk_1_1_t_edit')"><img src="closed.png" alt="-"/>&#160;Public 成员函数 继承自 <a class="el" href="classawtk_1_1_t_edit.html">awtk.TEdit</a></td></tr>
<tr class="memitem:a1304a8eb0e5b1d50fffda3168f3baf58 inherit pub_methods_classawtk_1_1_t_edit"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_edit.html#a1304a8eb0e5b1d50fffda3168f3baf58">TEdit</a> (long nativeObj)</td></tr>
<tr class="separator:a1304a8eb0e5b1d50fffda3168f3baf58 inherit pub_methods_classawtk_1_1_t_edit"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a54dfa7d9792d79b4f2545ad88f66cc6a inherit pub_methods_classawtk_1_1_t_edit"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_edit.html#a54dfa7d9792d79b4f2545ad88f66cc6a">getInt</a> ()</td></tr>
<tr class="separator:a54dfa7d9792d79b4f2545ad88f66cc6a inherit pub_methods_classawtk_1_1_t_edit"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a53f6fcd5cbafc4d848d8659a30ca4c6d inherit pub_methods_classawtk_1_1_t_edit"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_edit.html#a53f6fcd5cbafc4d848d8659a30ca4c6d">getDouble</a> ()</td></tr>
<tr class="separator:a53f6fcd5cbafc4d848d8659a30ca4c6d inherit pub_methods_classawtk_1_1_t_edit"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3d013a8959740ceb95fd63d6a0a86617 inherit pub_methods_classawtk_1_1_t_edit"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_edit.html#a3d013a8959740ceb95fd63d6a0a86617">setInt</a> (int value)</td></tr>
<tr class="separator:a3d013a8959740ceb95fd63d6a0a86617 inherit pub_methods_classawtk_1_1_t_edit"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4d041d5fe1965b061af9b1e470843ed8 inherit pub_methods_classawtk_1_1_t_edit"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_edit.html#a4d041d5fe1965b061af9b1e470843ed8">setDouble</a> (double value)</td></tr>
<tr class="separator:a4d041d5fe1965b061af9b1e470843ed8 inherit pub_methods_classawtk_1_1_t_edit"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8c4cd79700697bae39487a0a83936fca inherit pub_methods_classawtk_1_1_t_edit"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_edit.html#a8c4cd79700697bae39487a0a83936fca">setTextLimit</a> (int min, int max)</td></tr>
<tr class="separator:a8c4cd79700697bae39487a0a83936fca inherit pub_methods_classawtk_1_1_t_edit"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab60ea183eb4fbd10b65bc3979e9f397d inherit pub_methods_classawtk_1_1_t_edit"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_edit.html#ab60ea183eb4fbd10b65bc3979e9f397d">setIntLimit</a> (int min, int max, int step)</td></tr>
<tr class="separator:ab60ea183eb4fbd10b65bc3979e9f397d inherit pub_methods_classawtk_1_1_t_edit"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9a93e4f2c6e58a8dd13723193afd1dfd inherit pub_methods_classawtk_1_1_t_edit"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_edit.html#a9a93e4f2c6e58a8dd13723193afd1dfd">setFloatLimit</a> (double min, double max, double step)</td></tr>
<tr class="separator:a9a93e4f2c6e58a8dd13723193afd1dfd inherit pub_methods_classawtk_1_1_t_edit"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4cd953fa1cff886dbe123e598c1922a9 inherit pub_methods_classawtk_1_1_t_edit"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_edit.html#a4cd953fa1cff886dbe123e598c1922a9">setReadonly</a> (boolean readonly)</td></tr>
<tr class="separator:a4cd953fa1cff886dbe123e598c1922a9 inherit pub_methods_classawtk_1_1_t_edit"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abdcdc2f23aee583f8e74209146f84d68 inherit pub_methods_classawtk_1_1_t_edit"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_edit.html#abdcdc2f23aee583f8e74209146f84d68">setAutoFix</a> (boolean auto_fix)</td></tr>
<tr class="separator:abdcdc2f23aee583f8e74209146f84d68 inherit pub_methods_classawtk_1_1_t_edit"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a17ee7a550d2f87674fd68811b563a017 inherit pub_methods_classawtk_1_1_t_edit"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_edit.html#a17ee7a550d2f87674fd68811b563a017">setSelectNoneWhenFocused</a> (boolean select_none_when_focused)</td></tr>
<tr class="separator:a17ee7a550d2f87674fd68811b563a017 inherit pub_methods_classawtk_1_1_t_edit"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae0499673b0946550c0fe3db3e5b3a4dc inherit pub_methods_classawtk_1_1_t_edit"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_edit.html#ae0499673b0946550c0fe3db3e5b3a4dc">setOpenImWhenFocused</a> (boolean open_im_when_focused)</td></tr>
<tr class="separator:ae0499673b0946550c0fe3db3e5b3a4dc inherit pub_methods_classawtk_1_1_t_edit"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afa1c97fb9c92c973dd2bd4e8aba1b001 inherit pub_methods_classawtk_1_1_t_edit"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_edit.html#afa1c97fb9c92c973dd2bd4e8aba1b001">setInputType</a> (<a class="el" href="enumawtk_1_1_t_input_type.html">TInputType</a> type)</td></tr>
<tr class="separator:afa1c97fb9c92c973dd2bd4e8aba1b001 inherit pub_methods_classawtk_1_1_t_edit"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a25448294b4e362b573886ca740f6c633 inherit pub_methods_classawtk_1_1_t_edit"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_edit.html#a25448294b4e362b573886ca740f6c633">setInputTips</a> (String tips)</td></tr>
<tr class="separator:a25448294b4e362b573886ca740f6c633 inherit pub_methods_classawtk_1_1_t_edit"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acfc7c37a40d46e78e7ab14ea2b45f32f inherit pub_methods_classawtk_1_1_t_edit"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_edit.html#acfc7c37a40d46e78e7ab14ea2b45f32f">setPasswordVisible</a> (boolean password_visible)</td></tr>
<tr class="separator:acfc7c37a40d46e78e7ab14ea2b45f32f inherit pub_methods_classawtk_1_1_t_edit"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac5f2fe503adf5e41fe9c0102b5c33f50 inherit pub_methods_classawtk_1_1_t_edit"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_edit.html#ac5f2fe503adf5e41fe9c0102b5c33f50">setFocus</a> (boolean focus)</td></tr>
<tr class="separator:ac5f2fe503adf5e41fe9c0102b5c33f50 inherit pub_methods_classawtk_1_1_t_edit"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7aafadc67c20a64f7f414cc11952be71 inherit pub_methods_classawtk_1_1_t_edit"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_edit.html#a7aafadc67c20a64f7f414cc11952be71">setCursor</a> (int cursor)</td></tr>
<tr class="separator:a7aafadc67c20a64f7f414cc11952be71 inherit pub_methods_classawtk_1_1_t_edit"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a91b3675075a6b85b87ed51d9c5076e66 inherit pub_methods_classawtk_1_1_t_edit"><td class="memItemLeft" align="right" valign="top">boolean&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_edit.html#a91b3675075a6b85b87ed51d9c5076e66">getReadonly</a> ()</td></tr>
<tr class="separator:a91b3675075a6b85b87ed51d9c5076e66 inherit pub_methods_classawtk_1_1_t_edit"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3a2c4b455c6cec7f9cda4a383444bcdb inherit pub_methods_classawtk_1_1_t_edit"><td class="memItemLeft" align="right" valign="top">boolean&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_edit.html#a3a2c4b455c6cec7f9cda4a383444bcdb">getPasswordVisible</a> ()</td></tr>
<tr class="separator:a3a2c4b455c6cec7f9cda4a383444bcdb inherit pub_methods_classawtk_1_1_t_edit"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6b95397c0b7226ac607c26b3251058cc inherit pub_methods_classawtk_1_1_t_edit"><td class="memItemLeft" align="right" valign="top">boolean&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_edit.html#a6b95397c0b7226ac607c26b3251058cc">getAutoFix</a> ()</td></tr>
<tr class="separator:a6b95397c0b7226ac607c26b3251058cc inherit pub_methods_classawtk_1_1_t_edit"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4ec14c8369366ea282057b8f87a3b307 inherit pub_methods_classawtk_1_1_t_edit"><td class="memItemLeft" align="right" valign="top">boolean&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_edit.html#a4ec14c8369366ea282057b8f87a3b307">getSelectNoneWhenFocused</a> ()</td></tr>
<tr class="separator:a4ec14c8369366ea282057b8f87a3b307 inherit pub_methods_classawtk_1_1_t_edit"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aedd87e45ab85c5fecc539424c2a6d96e inherit pub_methods_classawtk_1_1_t_edit"><td class="memItemLeft" align="right" valign="top">boolean&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_edit.html#aedd87e45ab85c5fecc539424c2a6d96e">getOpenImWhenFocused</a> ()</td></tr>
<tr class="separator:aedd87e45ab85c5fecc539424c2a6d96e inherit pub_methods_classawtk_1_1_t_edit"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a06a163f41c0f041aef037ffe77121605 inherit pub_methods_classawtk_1_1_t_edit"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_edit.html#a06a163f41c0f041aef037ffe77121605">getTopMargin</a> ()</td></tr>
<tr class="separator:a06a163f41c0f041aef037ffe77121605 inherit pub_methods_classawtk_1_1_t_edit"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4b50b475eeddf9459cd82f3348041524 inherit pub_methods_classawtk_1_1_t_edit"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_edit.html#a4b50b475eeddf9459cd82f3348041524">getBottomMargin</a> ()</td></tr>
<tr class="separator:a4b50b475eeddf9459cd82f3348041524 inherit pub_methods_classawtk_1_1_t_edit"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4968208fbaf2bb2ccbb71f42db9eb3c0 inherit pub_methods_classawtk_1_1_t_edit"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_edit.html#a4968208fbaf2bb2ccbb71f42db9eb3c0">getLeftMargin</a> ()</td></tr>
<tr class="separator:a4968208fbaf2bb2ccbb71f42db9eb3c0 inherit pub_methods_classawtk_1_1_t_edit"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4a66cb487b2a51ee3b8eedd8529446fc inherit pub_methods_classawtk_1_1_t_edit"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_edit.html#a4a66cb487b2a51ee3b8eedd8529446fc">getRightMargin</a> ()</td></tr>
<tr class="separator:a4a66cb487b2a51ee3b8eedd8529446fc inherit pub_methods_classawtk_1_1_t_edit"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3e974129bc7002c7a150638f39cdf0ec inherit pub_methods_classawtk_1_1_t_edit"><td class="memItemLeft" align="right" valign="top">String&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_edit.html#a3e974129bc7002c7a150638f39cdf0ec">getTips</a> ()</td></tr>
<tr class="separator:a3e974129bc7002c7a150638f39cdf0ec inherit pub_methods_classawtk_1_1_t_edit"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa4337dc3eaf6b906d84c8693245571e6 inherit pub_methods_classawtk_1_1_t_edit"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_t_input_type.html">TInputType</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_edit.html#aa4337dc3eaf6b906d84c8693245571e6">getInputType</a> ()</td></tr>
<tr class="separator:aa4337dc3eaf6b906d84c8693245571e6 inherit pub_methods_classawtk_1_1_t_edit"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7becd5e8c915b8bdb45d964115c1ec93 inherit pub_methods_classawtk_1_1_t_edit"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_edit.html#a7becd5e8c915b8bdb45d964115c1ec93">getMin</a> ()</td></tr>
<tr class="separator:a7becd5e8c915b8bdb45d964115c1ec93 inherit pub_methods_classawtk_1_1_t_edit"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa73bb680610717cdf5ff35f51513ac62 inherit pub_methods_classawtk_1_1_t_edit"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_edit.html#aa73bb680610717cdf5ff35f51513ac62">getMax</a> ()</td></tr>
<tr class="separator:aa73bb680610717cdf5ff35f51513ac62 inherit pub_methods_classawtk_1_1_t_edit"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a08d10eab4de90b2df6c4e1d487dc6d34 inherit pub_methods_classawtk_1_1_t_edit"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_edit.html#a08d10eab4de90b2df6c4e1d487dc6d34">getStep</a> ()</td></tr>
<tr class="separator:a08d10eab4de90b2df6c4e1d487dc6d34 inherit pub_methods_classawtk_1_1_t_edit"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
静态 Public 成员函数</h2></td></tr>
<tr class="memitem:a35af5f66d306ac3570c75d2da95400a0"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classawtk_1_1_t_combo_box.html">TComboBox</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_combo_box.html#a35af5f66d306ac3570c75d2da95400a0">cast</a> (long nativeObj)</td></tr>
<tr class="separator:a35af5f66d306ac3570c75d2da95400a0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4f893f874fe29509fd9f0606d8063a1a"><td class="memItemLeft" align="right" valign="top">static TWidget&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_combo_box.html#a4f893f874fe29509fd9f0606d8063a1a">create</a> (TWidget parent, int x, int y, int w, int h)</td></tr>
<tr class="separator:a4f893f874fe29509fd9f0606d8063a1a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad8a146cb04fc5d1d55867af98531d383"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classawtk_1_1_t_combo_box.html">TComboBox</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_combo_box.html#ad8a146cb04fc5d1d55867af98531d383">cast</a> (TWidget widget)</td></tr>
<tr class="separator:ad8a146cb04fc5d1d55867af98531d383"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p>下拉列表控件。</p>
<p>点击右边的按钮，可弹出一个下拉列表，从中选择一项作为当前的值。</p>
<p>combo_box_t是edit\_t的子类控件，edit_t的函数均适用于combo_box_t控件。</p>
<p>在xml中使用"combo_box"标签创建下拉列表控件。</p>
<p>列表选项可以直接写在"options"属性中。如：</p>
<div class="fragment"><div class="line">*&lt;<span class="keywordtype">combo_box</span> <span class="keyword">readonly</span>=<span class="stringliteral">&quot;true&quot;</span> <span class="keyword">x</span>=<span class="stringliteral">&quot;10&quot;</span> <span class="keyword">y</span>=<span class="stringliteral">&quot;bottom:5&quot;</span> <span class="keyword">w</span>=<span class="stringliteral">&quot;200&quot;</span> <span class="keyword">h</span>=<span class="stringliteral">&quot;30&quot;</span> <span class="keyword">tr_text</span>=<span class="stringliteral">&quot;ok&quot;</span></div>
<div class="line">*<span class="keyword">options</span>=<span class="stringliteral">&quot;1:ok;2:cancel;&quot;</span>/&gt;</div>
</div><!-- fragment --><p>列表选项也可以放在独立的窗口中，用属性"open_window"指定窗口的名称。如：</p>
<div class="fragment"><div class="line">*&lt;<span class="keywordtype">combo_box</span> <span class="keyword">open_window</span>=<span class="stringliteral">&quot;language&quot;</span> <span class="keyword">readonly</span>=<span class="stringliteral">&quot;true&quot;</span> <span class="keyword">x</span>=<span class="stringliteral">&quot;10&quot;</span> <span class="keyword">y</span>=<span class="stringliteral">&quot;bottom:50&quot;</span> <span class="keyword">w</span>=<span class="stringliteral">&quot;200&quot;</span> <span class="keyword">h</span>=<span class="stringliteral">&quot;30&quot;</span></div>
<div class="line">*<span class="keyword">tr_text</span>=<span class="stringliteral">&quot;english&quot;</span>/&gt;</div>
</div><!-- fragment --><p>language.xml:</p>
<div class="fragment"><div class="line">*&lt;<span class="keywordtype">popup</span> <span class="keyword">close_when_click_outside</span>=<span class="stringliteral">&quot;true&quot;</span> <span class="keyword">h</span>=<span class="stringliteral">&quot;80&quot;</span></div>
<div class="line">*&lt;<span class="keywordtype">list_view</span> <span class="keyword">x</span>=<span class="stringliteral">&quot;0&quot;</span>  <span class="keyword">y</span>=<span class="stringliteral">&quot;0&quot;</span> <span class="keyword">w</span>=<span class="stringliteral">&quot;100%&quot;</span> <span class="keyword">h</span>=<span class="stringliteral">&quot;100%&quot;</span> <span class="keyword">item_height</span>=<span class="stringliteral">&quot;30&quot;</span>&gt;</div>
<div class="line">*&lt;<span class="keywordtype">scroll_view</span> <span class="keyword">name</span>=<span class="stringliteral">&quot;view&quot;</span> <span class="keyword">x</span>=<span class="stringliteral">&quot;0&quot;</span>  <span class="keyword">y</span>=<span class="stringliteral">&quot;0&quot;</span> <span class="keyword">w</span>=<span class="stringliteral">&quot;-12&quot;</span> <span class="keyword">h</span>=<span class="stringliteral">&quot;100%&quot;</span>&gt;</div>
<div class="line">*&lt;<span class="keywordtype">combo_box_item</span> <span class="keyword">tr_text</span>=<span class="stringliteral">&quot;english&quot;</span>/&gt;</div>
<div class="line">*&lt;<span class="keywordtype">combo_box_item</span> <span class="keyword">tr_text</span>=<span class="stringliteral">&quot;chinese&quot;</span> /&gt;</div>
<div class="line">*&lt;/<span class="keywordtype">scroll_view</span>&gt;</div>
<div class="line">*&lt;<span class="keywordtype">scroll_bar_d</span> <span class="keyword">name</span>=<span class="stringliteral">&quot;bar&quot;</span> <span class="keyword">x</span>=<span class="stringliteral">&quot;right&quot;</span> <span class="keyword">y</span>=<span class="stringliteral">&quot;0&quot;</span> <span class="keyword">w</span>=<span class="stringliteral">&quot;12&quot;</span> <span class="keyword">h</span>=<span class="stringliteral">&quot;100%&quot;</span> <span class="keyword">value</span>=<span class="stringliteral">&quot;0&quot;</span>/&gt;</div>
<div class="line">*&lt;/<span class="keywordtype">list_view</span>&gt;</div>
<div class="line">*&lt;/<span class="keywordtype">popup</span>&gt;</div>
</div><!-- fragment --><blockquote class="doxtable">
<p>更多用法请参考：<a href="https://github.com/zlgopen/awtk/blob/master/demos/assets/default/raw/ui/combo_box.xml">combo_box.xml</a> </p>
</blockquote>
<p>如果在文本比较长时，希望在获得焦点时文本自动滚动，可以放入一个hscroll_label为子控件，并命名为"value"。如：</p>
<div class="fragment"><div class="line">*&lt;<span class="keywordtype">combo_box</span> <span class="keyword">left_margin</span>=<span class="stringliteral">&quot;6&quot;</span> <span class="keyword">readonly</span>=<span class="stringliteral">&quot;true&quot;</span> <span class="keyword">x</span>=<span class="stringliteral">&quot;10&quot;</span> <span class="keyword">y</span>=<span class="stringliteral">&quot;50&quot;</span> <span class="keyword">w</span>=<span class="stringliteral">&quot;80&quot;</span> <span class="keyword">h</span>=<span class="stringliteral">&quot;30&quot;</span> <span class="keyword">options</span>=<span class="stringliteral">&quot;leftttttttttt;centerrrrrrrrrrrrrrrr;rightttttttttt;&quot;</span></div>
<div class="line">*<span class="keyword">selected_index</span>=<span class="stringliteral">&quot;1&quot;</span>&gt;</div>
<div class="line">*&lt;<span class="keywordtype">hscroll_label</span> <span class="keyword">x</span>=<span class="stringliteral">&quot;0&quot;</span> <span class="keyword">y</span>=<span class="stringliteral">&quot;0&quot;</span> <span class="keyword">w</span>=<span class="stringliteral">&quot;-30&quot;</span> <span class="keyword">h</span>=<span class="stringliteral">&quot;100%&quot;</span></div>
<div class="line">*<span class="keyword">name</span>=<span class="stringliteral">&quot;value&quot;</span></div>
<div class="line">*<span class="keyword">lull</span>=<span class="stringliteral">&quot;1000&quot;</span></div>
<div class="line">*<span class="keyword">loop</span>=<span class="stringliteral">&quot;true&quot;</span></div>
<div class="line">*<span class="keyword">yoyo</span>=<span class="stringliteral">&quot;true&quot;</span></div>
<div class="line">*<span class="keyword">ellipses</span>=<span class="stringliteral">&quot;true&quot;</span></div>
<div class="line">*<span class="keyword">only_parent_focus</span>=<span class="stringliteral">&quot;true&quot;</span>/&gt;</div>
<div class="line">*&lt;<span class="keywordtype">button</span> <span class="keyword">style</span>=<span class="stringliteral">&quot;combobox_down&quot;</span> <span class="keyword">x</span>=<span class="stringliteral">&quot;right:5&quot;</span> <span class="keyword">y</span>=<span class="stringliteral">&quot;middle&quot;</span> <span class="keyword">w</span>=<span class="stringliteral">&quot;20&quot;</span> <span class="keyword">h</span>=<span class="stringliteral">&quot;20&quot;</span>/&gt;</div>
<div class="line">*&lt;/<span class="keywordtype">combo_box</span>&gt;</div>
</div><!-- fragment --><p>在c代码中使用函数combo_box_create创建下拉列表控件。如：</p>
<p>创建之后：</p>
<p>用combo_box_set_options设置可选项目。 用combo_box_set_selected_index设置缺省项。</p>
<blockquote class="doxtable">
<p>完整示例请参考：[combo_box </p>
</blockquote>
<p>demo](<a href="https://github.com/zlgopen/awtk-c-demos/blob/master/demos/combo_box.c">https://github.com/zlgopen/awtk-c-demos/blob/master/demos/combo_box.c</a>)</p>
<p>可用通过style来设置控件的显示风格，如字体的大小和颜色等等。如：</p>
<div class="fragment"><div class="line">*&lt;<span class="keywordtype">combo_box</span>&gt;</div>
<div class="line">*&lt;<span class="keywordtype">style</span> <span class="keyword">name</span>=<span class="stringliteral">&quot;default&quot;</span> <span class="keyword">border_color</span>=<span class="stringliteral">&quot;#a0a0a0&quot;</span>  <span class="keyword">text_color</span>=<span class="stringliteral">&quot;black&quot;</span> <span class="keyword">text_align_h</span>=<span class="stringliteral">&quot;left&quot;</span>&gt;</div>
<div class="line">*&lt;<span class="keywordtype">normal</span>     <span class="keyword">bg_color</span>=<span class="stringliteral">&quot;#f0f0f0&quot;</span> /&gt;</div>
<div class="line">*&lt;<span class="keywordtype">focused</span>    <span class="keyword">bg_color</span>=<span class="stringliteral">&quot;#f0f0f0&quot;</span> <span class="keyword">border_color</span>=<span class="stringliteral">&quot;black&quot;</span>/&gt;</div>
<div class="line">*&lt;<span class="keywordtype">empty</span>      <span class="keyword">bg_color</span>=<span class="stringliteral">&quot;#f0f0f0&quot;</span> <span class="keyword">text_color</span>=<span class="stringliteral">&quot;#a0a0a0&quot;</span> /&gt;</div>
<div class="line">*&lt;/<span class="keywordtype">style</span>&gt;</div>
<div class="line">*&lt;/<span class="keywordtype">combo_box</span>&gt;</div>
</div><!-- fragment --><p>1.combobox的下拉按钮的style名称为combobox_down，可以在主题文件中设置。</p>
<div class="fragment"><div class="line">*&lt;<span class="keywordtype">button</span>&gt;</div>
<div class="line">*&lt;<span class="keywordtype">style</span> <span class="keyword">name</span>=<span class="stringliteral">&quot;combobox_down&quot;</span> <span class="keyword">border_color</span>=<span class="stringliteral">&quot;#a0a0a0&quot;</span>&gt;</div>
<div class="line">*&lt;<span class="keywordtype">normal</span>     <span class="keyword">bg_color</span>=<span class="stringliteral">&quot;#f0f0f0&quot;</span> <span class="keyword">icon</span>=<span class="stringliteral">&quot;arrow_down_n&quot;</span>/&gt;</div>
<div class="line">*&lt;<span class="keywordtype">pressed</span>    <span class="keyword">bg_color</span>=<span class="stringliteral">&quot;#c0c0c0&quot;</span> <span class="keyword">icon</span>=<span class="stringliteral">&quot;arrow_down_p&quot;</span>/&gt;</div>
<div class="line">*&lt;<span class="keywordtype">over</span>       <span class="keyword">bg_color</span>=<span class="stringliteral">&quot;#e0e0e0&quot;</span> <span class="keyword">icon</span>=<span class="stringliteral">&quot;arrow_down_o&quot;</span>/&gt;</div>
<div class="line">*&lt;/<span class="keywordtype">style</span>&gt;</div>
<div class="line">*&lt;/<span class="keywordtype">button</span>&gt;</div>
</div><!-- fragment --><p>2.combobox的弹出popup窗口的style名称为combobox_popup，可以在主题文件中设置。</p>
<div class="fragment"><div class="line">*&lt;<span class="keywordtype">popup</span>&gt;</div>
<div class="line">*&lt;<span class="keywordtype">style</span> <span class="keyword">name</span>=<span class="stringliteral">&quot;combobox_popup&quot;</span> <span class="keyword">border_color</span>=<span class="stringliteral">&quot;red&quot;</span>&gt;</div>
<div class="line">*&lt;<span class="keywordtype">normal</span> <span class="keyword">bg_color</span>=<span class="stringliteral">&quot;#808080&quot;</span>/&gt;</div>
<div class="line">*&lt;/<span class="keywordtype">style</span>&gt;</div>
<div class="line">*&lt;/<span class="keywordtype">popup</span>&gt;</div>
</div><!-- fragment --><blockquote class="doxtable">
<p>更多用法请参考：[theme </p>
</blockquote>
<p>default](<a href="https://github.com/zlgopen/awtk/blob/master/demos/assets/default/raw/styles/default.xml#L422">https://github.com/zlgopen/awtk/blob/master/demos/assets/default/raw/styles/default.xml#L422</a>) </p>
</div><h2 class="groupheader">构造及析构函数说明</h2>
<a id="a5341d44e4d42dae122b12f7098da592c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5341d44e4d42dae122b12f7098da592c">&#9670;&nbsp;</a></span>TComboBox()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">awtk.TComboBox.TComboBox </td>
          <td>(</td>
          <td class="paramtype">long&#160;</td>
          <td class="paramname"><em>nativeObj</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>通过nativeObj构造Java对象。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">nativeObj</td><td>原生对象。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>对应的Java对象。 </dd></dl>

</div>
</div>
<h2 class="groupheader">成员函数说明</h2>
<a id="a43bd95933163b4fe8019426952024b62"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a43bd95933163b4fe8019426952024b62">&#9670;&nbsp;</a></span>appendOption()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a> awtk.TComboBox.appendOption </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>value</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">String&#160;</td>
          <td class="paramname"><em>text</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>追加一个选项。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">value</td><td>值。 </td></tr>
    <tr><td class="paramname">text</td><td>文本。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a35af5f66d306ac3570c75d2da95400a0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a35af5f66d306ac3570c75d2da95400a0">&#9670;&nbsp;</a></span>cast() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="classawtk_1_1_t_combo_box.html">TComboBox</a> awtk.TComboBox.cast </td>
          <td>(</td>
          <td class="paramtype">long&#160;</td>
          <td class="paramname"><em>nativeObj</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>把nativeObj转换层Java对象。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">nativeObj</td><td>原生对象。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>对应的Java对象。 </dd></dl>

<p>重载 <a class="el" href="classawtk_1_1_t_edit.html#a6bb1b46fd01f738a930efacfd5aefd1e">awtk.TEdit</a> .</p>

<p>被 <a class="el" href="classawtk_1_1_t_combo_box_ex.html#a0539be72cb286df4499221c12d454b55">awtk.TComboBoxEx</a> 重载.</p>

</div>
</div>
<a id="ad8a146cb04fc5d1d55867af98531d383"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad8a146cb04fc5d1d55867af98531d383">&#9670;&nbsp;</a></span>cast() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="classawtk_1_1_t_combo_box.html">TComboBox</a> awtk.TComboBox.cast </td>
          <td>(</td>
          <td class="paramtype">TWidget&#160;</td>
          <td class="paramname"><em>widget</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>转换combo_box对象(供脚本语言使用)。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">widget</td><td>combo_box对象。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>combo_box对象。 </dd></dl>

<p>重载 <a class="el" href="classawtk_1_1_t_edit.html#ae53f94c7e6d54f065e3a7c02ce036a2a">awtk.TEdit</a> .</p>

</div>
</div>
<a id="abdfec36707d283c566717958b286f575"></a>
<h2 class="memtitle"><span class="permalink"><a href="#abdfec36707d283c566717958b286f575">&#9670;&nbsp;</a></span>countOptions()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">int awtk.TComboBox.countOptions </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>获取选项个数。</p>
<dl class="section return"><dt>返回</dt><dd>返回选项个数。 </dd></dl>

</div>
</div>
<a id="a4f893f874fe29509fd9f0606d8063a1a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4f893f874fe29509fd9f0606d8063a1a">&#9670;&nbsp;</a></span>create()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static TWidget awtk.TComboBox.create </td>
          <td>(</td>
          <td class="paramtype">TWidget&#160;</td>
          <td class="paramname"><em>parent</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>y</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>w</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>h</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>创建combo_box对象</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">parent</td><td>父控件 </td></tr>
    <tr><td class="paramname">x</td><td>x坐标 </td></tr>
    <tr><td class="paramname">y</td><td>y坐标 </td></tr>
    <tr><td class="paramname">w</td><td>宽度 </td></tr>
    <tr><td class="paramname">h</td><td>高度</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>对象。 </dd></dl>

<p>重载 <a class="el" href="classawtk_1_1_t_edit.html#a2d09e68e8a6df2f25c2a0d8ffec9e97a">awtk.TEdit</a> .</p>

<p>被 <a class="el" href="classawtk_1_1_t_combo_box_ex.html#a6539ad1288bb1932b2256af8b2ccfdb2">awtk.TComboBoxEx</a> 重载.</p>

</div>
</div>
<a id="a723dd763329dd779427a2d3d310355b5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a723dd763329dd779427a2d3d310355b5">&#9670;&nbsp;</a></span>getItemHeight()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">int awtk.TComboBox.getItemHeight </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>下拉选项的高度。如果open_window为空，则使用缺省高度。 </p>

</div>
</div>
<a id="a0c54f266dd9547827aa9a906af6f50c3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0c54f266dd9547827aa9a906af6f50c3">&#9670;&nbsp;</a></span>getLocalizeOptions()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">boolean awtk.TComboBox.getLocalizeOptions </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>是否本地化(翻译)选项(缺省为TRUE)。 </p>

</div>
</div>
<a id="a456dfc6118b8a5274c25d02b07ce018c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a456dfc6118b8a5274c25d02b07ce018c">&#9670;&nbsp;</a></span>getOpenWindow()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">String awtk.TComboBox.getOpenWindow </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>为点击按钮时，要打开窗口的名称。 </p>

</div>
</div>
<a id="a54dc57ee4cdbb98731af52d3430b2ff3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a54dc57ee4cdbb98731af52d3430b2ff3">&#9670;&nbsp;</a></span>getOptions()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">String awtk.TComboBox.getOptions </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>设置可选项(冒号分隔值和文本，分号分隔选项，如:1:red;2:green;3:blue)。 </p>

</div>
</div>
<a id="a47eed5507a0629cfac1b2accc5544530"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a47eed5507a0629cfac1b2accc5544530">&#9670;&nbsp;</a></span>getSelectedIndex()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">int awtk.TComboBox.getSelectedIndex </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>当前选中的选项。 </p>

</div>
</div>
<a id="a664f9a3fd7d244d1baaac823df721c40"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a664f9a3fd7d244d1baaac823df721c40">&#9670;&nbsp;</a></span>getTextValue()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">String awtk.TComboBox.getTextValue </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>获取combo_box的文本。</p>
<dl class="section return"><dt>返回</dt><dd>返回文本。 </dd></dl>

</div>
</div>
<a id="a4bd11765584dd7a7d846be5fe6ef9cef"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4bd11765584dd7a7d846be5fe6ef9cef">&#9670;&nbsp;</a></span>getValue()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">int awtk.TComboBox.getValue </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>获取combo_box的值。</p>
<dl class="section return"><dt>返回</dt><dd>返回值。 </dd></dl>

</div>
</div>
<a id="ae5b92cb1c3bf8e4cc739ccc122774027"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae5b92cb1c3bf8e4cc739ccc122774027">&#9670;&nbsp;</a></span>resetOptions()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a> awtk.TComboBox.resetOptions </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>重置所有选项。</p>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a92ebbc57a5ed345e1a3129a07834e46b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a92ebbc57a5ed345e1a3129a07834e46b">&#9670;&nbsp;</a></span>setItemHeight()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a> awtk.TComboBox.setItemHeight </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>item_height</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>设置item高度。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">item_height</td><td>item的高度。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a1fb47f2bea2fe89f1291db2cc7f0062f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1fb47f2bea2fe89f1291db2cc7f0062f">&#9670;&nbsp;</a></span>setLocalizeOptions()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a> awtk.TComboBox.setLocalizeOptions </td>
          <td>(</td>
          <td class="paramtype">boolean&#160;</td>
          <td class="paramname"><em>localize_options</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>设置是否本地化(翻译)选项。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">localize_options</td><td>是否本地化(翻译)选项。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a776052abf9964d98589c89ea70931893"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a776052abf9964d98589c89ea70931893">&#9670;&nbsp;</a></span>setOpenWindow()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a> awtk.TComboBox.setOpenWindow </td>
          <td>(</td>
          <td class="paramtype">String&#160;</td>
          <td class="paramname"><em>open_window</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>点击按钮时可以打开popup窗口，本函数可设置窗口的名称。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">open_window</td><td>弹出窗口的名称。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a793875acda1d86174de0b16104fc8c89"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a793875acda1d86174de0b16104fc8c89">&#9670;&nbsp;</a></span>setOptions()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a> awtk.TComboBox.setOptions </td>
          <td>(</td>
          <td class="paramtype">String&#160;</td>
          <td class="paramname"><em>options</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>设置选项。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">options</td><td>选项。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="ae48741968abb8a29be7e99c7061be902"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae48741968abb8a29be7e99c7061be902">&#9670;&nbsp;</a></span>setSelectedIndex()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a> awtk.TComboBox.setSelectedIndex </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>index</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>设置第index个选项为当前选中的选项。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">index</td><td>选项的索引。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a5172d41049eddcaf4c1905947623ba82"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5172d41049eddcaf4c1905947623ba82">&#9670;&nbsp;</a></span>setValue()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a> awtk.TComboBox.setValue </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>value</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>设置值。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">value</td><td>值。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>output/TComboBox.java</li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者 &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.17
</small></address>
</body>
</html>
